package com.qiwx.pigeon.adapter.account;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.viewholder.BaseViewHolder;
import com.qiwx.pigeon.R;
import com.qiwx.pigeon.adapter.home.ICageInterface;
import com.qiwx.pigeon.data.RoleConfig;
import com.qiwx.pigeon.data.vo.EmployBean;
import com.qiwx.pigeon.data.vo.QueryCageBean;

import java.util.List;

/**
 * @description
 * @Author qiwx
 * @Date 2020-04-03 21:06
 * 账号
 **/
public class EmpolyAdapter extends BaseQuickAdapter<EmployBean, BaseViewHolder> {

    ICageInterface iCageInterface;

    public EmpolyAdapter(int layoutResId) {
        super(layoutResId);
    }

    public EmpolyAdapter(int layoutResId, List<EmployBean> data) {
        super(layoutResId, data);
    }

    public void setICageInterface(ICageInterface iCageInterface) {
        this.iCageInterface = iCageInterface;
    }

    @Override
    protected void convert(BaseViewHolder holder, EmployBean bean) {
        holder.setText(R.id.txt_login_name, bean.getLogin_name());
        holder.setText(R.id.txt_role, RoleConfig.getRoleDes(bean.getRole()));
    }
}